<template>
  <div>
    <h2>儿子组件 - {{ user.name }}</h2>
    <hr />
    <GrandSon />
  </div>
</template>

<script>
import GrandSon from './GrandSon.vue';
export default {
    inject: ['user'],
components: {
    GrandSon
}
}
</script>

<style lang="less" scoped>

</style>